"""
login_page
"""
from selenium.webdriver.common.by import By
from basic.s13_base_page import BasePage


class NewsPage(BasePage):
    news_url = 'http://news.baidu.com/'
    index = (By.CSS_SELECTOR, '[href="https://www.baidu.com/"]')

    def goto_news(self):
        self.driver.get(self.news_url)

    def click_index(self):
        self.click_visibility_by_locator(self.index)
